package com.wyc.service.impl;

import com.wyc.service.HelloService;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

/**
 * @author
 */
@Service
public class HelloServiceImpl implements HelloService {

    @Override
    public String sayHello(String name) {
        System.out.println("remote host ip address : " + RpcContext.getContext().getAttachment("hostAddress"));
        return "Hello : " + name;
    }
}
